#ifndef PLAYER_H
#define PLAYER_H

#include <QWidget>
#include<qslider.h>
#include<qlistwidget.h>
#include<qpushbutton.h>
#include<qmediaplayer.h>
#include<qmediaplaylist.h>
#include"myslider.h"

namespace Ui {
class Player;
}

class Player : public QWidget
{
    Q_OBJECT

public:
    explicit Player(QWidget *parent = nullptr);
    ~Player();

protected:

private slots:
    void play();
    void sliderChange();
    void listSlot();
    void on_pushButton_clicked();
    void progressChange();

private:
    Ui::Player *ui;
    QWidget *cover;
    QPushButton *playbtn;
    QListWidget *myList;
    QListWidgetItem *items[3];
    QMediaPlayer *plr;
    QMediaPlaylist *playlist;
    mySlider *sld;

};

#endif // PLAYER_H
